<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8"/>
    <style>
      div {
      padding: 0;
      margin: 0;
      }
      .F1 {
      float: right;
      border: solid green;
      height: 200px;
      width: 200px;
      }
      .F2 {
      float: right;
      border: solid orange;
      width: 350px;
      height: 20px;
      }
@page {
  size: auto;
}

    </style>
  </head>
  <body>
    <div class="F1">Float 1. Float 1. Float 1. Float 1. </div>
    Normal text. Normal text. Normal text.    Normal text. Normal text. Normal text.    Normal text. Normal text. Normal text.
    <span class="F2">Float 2. Float 2. Float 2. Float 2. Float 2. </span>
  </body>
</html>
